package com.ruoyi.point.pojo;

import com.ruoyi.framework.pojo.VirInfo;
import lombok.*;

/**
 * @author Maple
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
public class UserInfo implements VirInfo {

    private String userID;
    private String userName;
    private String hasPowerInfo;
    private String permissions;
    private String allowTheScepterToGetTheStartTime;
    private String allowTheScepterToGetTheEndTime;

    public static UserInfo toUserInfo(AccountManagement accountManagement) {
        UserInfo userInfo = new UserInfo();
        userInfo.setUserID(accountManagement.getUserId());
        userInfo.setUserName(accountManagement.getUserName());
        userInfo.hasPowerInfo = "False";
        userInfo.permissions = "";
        return userInfo;
    }

}
